package com.apimarket.util;

import com.apimarket.util.net.NetContext;
import com.fasterxml.jackson.databind.JsonNode;

import java.io.IOException;
import java.net.URISyntaxException;

public class UrlUtil {
    private NetContext context;

    public UrlUtil() {
    }

    public UrlUtil(NetContext context) {
        this.context = context;
    }

    public NetContext getContext() {
        return context;
    }

    public void setContext(NetContext context) {
        this.context = context;
    }

    public JsonNode getJsonRoot() throws IOException, URISyntaxException {
        return context.getResultJson();
    }
}
